home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
clipper
/
ks94an.zip
/
AMAXSELE.HDR
< prev
next >
Wrap
Text File
|
1994-04-25
|
1KB
|
48 lines
/******************************************************************************
The Klipper Library, for CA-Clipper 5.x
Copyright (c), 1994, Wallace Information Systems Engineering
FUNCTION:
_AMaxStrElement( acArray ) --> nLongestElement
PARAMETERS:
acArray : array of character strings
SHORT:
Get element number of longest character string in array.
DESCRIPTION:
_AMaxStrElement() returns the number of the element associated with
longest character string in an array of strings.
If the array is empty, the return value is 0. If any element of the array
is not of type char, the return value is 0.
Note: The return value does not necessarily identify any particular
array element because two element strings may be the same length.
NOTE:
See also:
_AMaxStrLen() which returns the length of the longest string of an array.
EXAMPLE:
LOCAL aArray := { 'a','aaa','aaaaaaaaa','aa'}
t = _AMaxStrElement( aArray )
Result: t = 3
LOCAL aArray := {}
t = _AMaxStrElement( aArray )
Result: t = 0
******************************************************************************/